DonkeyConfig

data class DonkeyConfig(environment: DonkeyConfig.ServerEnvironment, logLevel: DonkeyConfig.LogLevel)

Configuration class for bike.donkey.lockkit.DonkeyLockKit

The instance of this data class is attached to DonkeyLockKit in order to supply necessary configuration as needed It is possible to update the variables of DonkeyConfig before calling DonkeyLockKit.initializeSdk function,

Parameters

environment

ServerEnvironment for which to authenticate the Sdk

logLevel

LogLevel to select how much of logging should be displayed in Logcat

Constructors

Link copied to clipboard
fun DonkeyConfig(environment: DonkeyConfig.ServerEnvironment = ServerEnvironment.LIVE, logLevel: DonkeyConfig.LogLevel = LogLevel.DEBUG)

Types

Link copied to clipboard
enum LogLevel : Enum<DonkeyConfig.LogLevel>

Defines the log levels for the framework

Link copied to clipboard
enum ServerEnvironment : Enum<DonkeyConfig.ServerEnvironment>

Defines the server environment for the framework. The server environment is used for SDK Token verification and for tracking lock and unlock events for locks.

Properties

Link copied to clipboard
var environment: DonkeyConfig.ServerEnvironment
Link copied to clipboard
var logLevel: DonkeyConfig.LogLevel